import request from '@/utils/request'

// 查询
export function listOrders(query) {
  return request({
    url: '/service/api/purchase_order/list',
    method: 'get',
    params: query
  })
}

// 查询
export function getOrders(id) {
  return request({
    url: '/service/api/purchase_order/info/' + id,
    method: 'get'
  })
}

// 新增
export function addOrders(data) {
  return request({
    url: '/service/api/purchase_order/add',
    method: 'post',
    data: data
  })
}

// 修改
export function updateOrders(data) {
  return request({
    url: '/service/api/purchase_order/edit',
    method: 'post',
    data: data
  })
}

// 所有仓库数据
export function allInventory() {
  return request({
    url: '/service/api/inventory_center/base_list',
    method: 'get',
  })
}


// 删除客户订单
export function delOrders(id) {
//   return request({
//     url: '/service/orders/' + id,
//     method: 'delete'
//   })
}

//订单审核
export function checkReview_API(data) {
//   return request({
//     url: '/service/orders/review',
//     method: 'post',
//     data,
//   })
}

//订单审核
export function listById(id) {
//   return request({
//     url: '/service/concrete/list-by-id/' + id,
//     method: 'get'
//   })
}